import random

print("实现")
num2 = random.randint(1, 100)
print("随机生成一个数字，是：", num2)
list2 = []
i = 1
lucky = []
while i <= num2:
    list2.append(i)
    if i % 6 == 0:
        lucky.append(i)
    i += 1
print(list2)
print(list2)
print(lucky)




print("实xia")
# 列表嵌套：有3个教室[[],[],[]]，
# 8名讲师['A','B','C','D','E','F','G','H']，
# 将8名讲师随机分配到3个教室中
classes=[[],[],[]]
teachers=['A','B','C','D','E','F','G','H']
for teacher in teachers:
    num4 = random.randint(1, 3)
    if num4==1:
        classes[0].append(teacher)
    elif num4==2:
        classes[1].append(teacher)
    elif num4==3:
        classes[2].append(teacher)
print("教师已经分配完",classes)
